package chapter19;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/2 21:41
 */
enum Search {HITHER, YON}

public class UpCastEnum {
    public static void main(String[] args) {
        Search[] values = Search.values();
        Enum e = Search.HITHER;
        for (Enum enumConstant : e.getClass().getEnumConstants()) {
            System.out.println(enumConstant);
        }
    }
}
